export interface WorkingMemorySequence {
  items: (number | string | { x: number; y: number })[];
  type: 'digit' | 'letter' | 'spatial' | 'color';
  reverse?: boolean;
}

export interface DualNBackStimulus {
  position: { x: number; y: number };
  audio: string;
  timestamp: number;
}

export interface OperationSpanItem {
  operation: string;
  result: number;
  letter: string;
  userAnswer: number;
  correct: boolean;
}

export interface ReadingSpanItem {
  sentence: string;
  isTrue: boolean;
  lastWord: string;
  userResponse: boolean;
  correct: boolean;
}

export interface VisualMatrixCell {
  x: number;
  y: number;
  highlighted: boolean;
  selected?: boolean;
}

export interface WorkingMemoryResponse {
  sequence: (number | string)[];
  accuracy: number;
  reactionTime: number;
  spanLength: number;
  taskType: string;
}